package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.SearchBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.GOODS_SEARCH)
public class ConnGoodsSearch extends BaseAsyPost<SearchBean> {


    public String title;
    public String status;
    public String member_id;
    public int page;

    public ConnGoodsSearch(String title, String status, String member_id, int page, AsyCallBack<SearchBean> asyCallBack) {
        super(asyCallBack);
        this.title = title;
        this.status = status;
        this.member_id = member_id;
        this.page = page;
    }

    @Override
    protected SearchBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();
        SearchBean loginBean = new SearchBean();
        loginBean = gson.fromJson(object.toString(), SearchBean.class);
        return loginBean;

    }
}



